# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-sphinx-autodoc-typehints
_pyname=sphinx_autodoc_typehints
pkgver=1.18.3
pkgrel=0
pkgdesc="Type hints support for the Sphinx autodoc extension"
url="https://github.com/agronholm/sphinx-autodoc-typehints"
arch="noarch"
license="MIT"
options="net"
depends="python3 py3-sphinx py3-typing-extensions"
makedepends="py3-setuptools py3-setuptools_scm"
checkdepends="py3-pytest py3-sphobjinv py3-nptyping"
source="https://files.pythonhosted.org/packages/source/s/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
c312a9c9fad8ca84eb8ae6515ff1931dd33fc295d67475d5783269c989f4d8cf27e0d523cd0d933ac831fba8b84bc32b55bb04dee5e7ba579d77964335072481  sphinx_autodoc_typehints-1.18.3.tar.gz
"
